
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit User</title>

        <link rel="stylesheet" href="css/dbpedia/style.css" type="text/css" />
        <link rel="stylesheet" href="css/dbpedia/highlighter.css" type="text/css" />

        <!--CX: tokenizer -->
        <link rel="stylesheet" href="css/token/token-input.css" type="text/css" />
        <link rel="stylesheet" href="css/token/token-input-facebook-2.css" type="text/css" />

        <script type="text/javascript" src="js/jquery/jquery-1.8.3.min.js"></script>
        <script type="text/javascript" src="js/token/jquery.tokeninput.js"></script>   

    </head>
    <body>

        <%@include file="header.jsp" %>
        <br>

        <h1>&nbsp;Edit User</h1>

        <form>
            <table cellpadding="5" cellspacing="5">
                <tr>
                    <td>First Name:</td>
                    <td><input type="text" name="firstName" value="${model.user.firstName}" style="width:200px; padding: 3px;"/></td>
                </tr>
                <tr>
                    <td>Last Name:</td>
                    <td><input type="text" name="lastName" value="${model.user.lastName}" style="width:200px; padding: 3px;"/></td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td>
                        <input type="text" name="email" value="${model.user.email}" style="width:200px; padding: 3px;" />
                    </td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td><input type="text" name="password" value="${model.user.password}" style="width:200px; padding: 3px;" /></td>
                </tr>
               
                <tr>
                    <td colspan="2">
                        <br>
                        <b>Contact Details</b>
                        <br>
                        <hr>
                    </td>
                </tr>
                <tr>
                    <td>Email (Primary)</td>
                    <td><input type="text" name="emailPrimary" value="${model.user.emailPrimary}" style="width:200px; padding: 3px;"/></td>
                </tr>
                <tr>
                    <td>Email (Secondary)</td>
                    <td><input type="text" name="emailSecondary" value="${model.user.emailSecondary}" style="width:200px; padding: 3px;"/></td>
                </tr>
                <tr>
                    <td>Mobile (Primary)</td>
                    <td><input type="text" name="mobilePrimary" value="${model.user.mobilePrimary}" style="width:200px; padding: 3px;"/></td>
                </tr>
                <tr>
                    <td>Mobile (Secondary)</td>
                    <td><input type="text" name="mobileSecondary" value="${model.user.mobileSecondary}" style="width:200px; padding: 3px;"/></td>
                </tr>
                <tr>
                    <td>Landline (Primary)</td>
                    <td><input type="text" name="landlinePrimary" value="${model.user.landlinePrimary}" style="width:200px; padding: 3px;"/></td>
                </tr>
                <tr>
                    <td>Landline (Secondary)</td>
                    <td><input type="text" name="landlineSecondary" value="${model.user.landlineSecondary}" style="width:200px; padding: 3px;"/></td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="submit" value="Save Changes" />
                        <input type="hidden" name="a" value="4" />
                        <input type="hidden" name="s" value="1" />
                        <input type="hidden" name="id" value="${model.user.id}" />
                    </td>
                </tr>
            </table>
        </form>
                    
        <br>
        <hr>
        <br>
       
        
    </body>
</html>
